package com.onstar.cn.mag;

/**
 * Created by 7828wc on 2016/1/21.
 */
public enum Week {

    MON("MON"),
    TUE("TUE"),
    WED("WED"),
    THU("THU"),
    FRI("FRI"),
    SAT("SAT"),
    SUN("SUN");

    private String value;

    Week(String value){
        this.value = value;
    }

    public String getStringValue() {
        return value;
    }

    public static Week fromValue(String v) {
        for (Week c : Week.values()) {
            if (c.value.equals(v)) {
                return c;
            }
        }
        return null;
    }
}
